package com.wpg.demo.spring.xml.global;

import org.springframework.beans.factory.support.MethodReplacer;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * @author ChangWei Li
 * @version 2017-02-21 09:29
 */
@Component
public class ReplaceMethod implements MethodReplacer {

    @Override
    public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
        System.out.println("ReplcaeMethod testDao invoked");
        return null;
    }
}
